<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta name="keywords" content="营圈网">
		<meta name="description" content="营圈网，一起来赢！">
		<title>我的购物车|营圈网，一起来赢！</title>
		<#include "/common/head.html">
	</head>

	<body>
		<!--头部-->
		<#include "/common/top-nav.html">
		<#import "/common/header.html" as header>
		<@header.header page="cart"/>

		<div class="cart w">
			<div class="conrm-section w">
				<div class="thisPon">
					<div class="ponState clearfix">
						<span class="fl one">1</span> <span class="fl two active">2</span> <span class="fl three active">3</span>
					</div>
					<div class="ponTitle clearfix">
						<i class="fl l">我的购物车</i> <i class="fl c">订单结算</i> <i class="fl r active">订单支付</i>
					</div>
				</div>
			</div>
			
			<div class="cart-filter-bar clearfix">
				<div class="cart-store fl">
					<span>已选商品：<span class="cart_number">${(carts?size)!0}</span>件，总价（不含运费）： <b>￥</b><b class="cart_money">0.00</b></span>
					<input type="button" value="结算" name="settlement">
				</div>
			</div>

			<div class="cart-main">
				<div class="cart-thead clearfix">
					<label class="fl t-checkbox"><input type="checkbox" id="checkAll"> 全选</label>
					<span class="fl t-goods">商品信息</span>
					<span class="fl t-price">单价</span>
					<span class="fl t-quantity">数量</span>
					<span class="fl t-sum">金额</span>
					<span class="fl">操作</span>
				</div>
				<dl class="cart-list" style="display: block;">
				
				<form id="settlementForm" action="/cart/settlement.html" method="POST" >
					<#assign totalMoney = 0>
					<#if carts?? && carts?size gt 0>
					<#list carts as item>
					<dd class="clearfix" id="cart_ware_${(item.id)!0}">
						<div class="cart-checkbox fl">
							<input type="checkbox" checked  wareId=${(item.wareId)!0} name="id" value=${(item.id)!0} >
						</div>
						<div class="p-goods fl clearfix">
							<div class="p-img fl">
								<a href="/ware/${(item.wareId)!0}.html"><img src="${(item.mainImage)!""}" alt="${(item.wareName)!""}-营圈网"></a>
							</div>
							<div class="p-name fl">
								<a href="/ware/${(item.wareId)!0}.html"> ${(item.wareName)!""}</a>
							</div>
						</div>
						<div class="p-price fl">
							<i>￥${((item.priceOriginal)!0)?string('0.00')}</i><br>
							<b>￥${((item.pricePromotional)!0)?string('0.00')}</b>
						</div>
						<div class="p-quantity fl clearfix">
							<a href="javascript:;" class="fl decrement dropNum">-</a>
							<input type="text" class="fl" value="${(item.number)!0}" name="number" id="number_${(item.wareId)!0}" onblur="" cartId=${(item.id)!0} warePrice=${((item.pricePromotional)!0)!0}>
							<a href="javascript:;" class="fl increment addNum">+</a>
						</div>
						<div class="p-sum fl">￥<em id="price_${(item.wareId)!0}">${(((item.pricePromotional)!0) * ((item.number)!0))?string('0.00')}</em></div>
						<#if item.pricePromotional?? && item.number>
						<#assign totalMoney += item.pricePromotional * item.number>
						</#if>
						<div class="p-ops fl">
							<a href="javascript:void(0);" class="cart-remove"  cartId=${(item.id)!0}>删除</a>
						</div>
					</dd>
					</#list>
					</#if>
					</form>
				</dl>

				<!--结算浮动条-->
				<div class="ui-ceilinglamp">
					<div class="toolbar-wrap w">
						<div class="fl toolbar-left">
							<label><input type="checkbox"> 全选</label>
							<a href="/index.php/Home/cart/cart_del.html" onclick="return delete_many(this);" class="remove-batch">删除</a>
							<a href="/index.php/Home/cart/move_coll.html" onclick="return move_many(this)" class="follow-batch">移入收藏夹</a>
						</div>
						<div class="fr toolbar-right">
							<span class="fl">已选商品 <em class="active cart_number">${(carts?size)!0}</em> 件，合计：</span>
							<span class="fl active"><em>￥</em><b class="cart_money">0.00</b></span>
							<script>$(".cart_money").html(${totalMoney?string('0.00')});</script>
							<input type="button" value="结算" class="fl" name="settlement">
						</div>
					</div>
				</div>
			</div>
		</div>

		<p>&nbsp;</p>
		<p>&nbsp;</p>
	
		<!--尾部-->
		<#include "/common/footer.html">
		<script src="http://static.yqw.com/js/biz/cart.js"></script>
	</body>

</html>